
import App from './App'
import fui from './common/fui-app'
import store from './store' 


// #ifndef VUE3
import Vue from 'vue'

Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.fui = fui

App.mpType = 'app'

const app = new Vue({
	store,
	...App
})

app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'

// 引入 pinia
import  * as Pinia from 'pinia'

export function createApp() {
	const app = createSSRApp(App)
	app.use(Pinia.createPinia())
	app.use(store)
	app.config.globalProperties.fui = fui;
	return {
		app,
		Pinia
	}
} 
// #endif